package com.etcn.modules.busi.product.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.etcn.common.annotation.Manage;
import com.etcn.common.controller.BaseController;
import com.etcn.modules.busi.product.pojo.WmVipProduct;
import com.etcn.modules.busi.product.service.IWmVipProductService;

/**
 * vipcontroller
 * @author guozc
 * @date: 2018-03-19
 */
@Controller
@RequestMapping("/v1/products")
public class WmVipProductController extends BaseController {

	@Autowired
    private IWmVipProductService wmVipProductService;
	
	/**
     * vip套餐查询
     */
    @Manage
    @RequestMapping(value = "vipplans", method = RequestMethod.GET)
    public @ResponseBody Object getVipPlans(WmVipProduct wmVipProduct) throws Exception{
    	return wmVipProductService.findList(wmVipProduct);
    }
    
}